const char *name;
const char *desc;
const char *extension;
+ const char *parent;
} vecs_t;
extern ff_vecs_t an1_vecs;
"Vcard Output (for iPod)",
"vcf",
},
+#if 0
{
&overlay_vecs,
"overlay",
"GeoGrid-Viewer",
"ovl"
},
+#endif
{
&google_vecs,
"google",
/* Normal vecs are easy; populate the first part of the array. */
for (vec = vec_list; vec->vec; vec++, i++) {
svp[i] = vec;
+ if (svp[i]->parent == NULL) {
+ svp[i]->parent = svp[i]->name;
+ }
}
/* Walk the style list, parse the entries, dummy up a "normal" vec */
}
svp[i]->desc = xcsv_file.description;
+ svp[i]->parent = "xcsv";
}
/* Now that we have everything in an array, alphabetize them */
qsort(svp, vc, sizeof(*svp), alpha);
if (version >= 2) {
disp_v2(vec->vec);
}
- printf("%s\t%s\t%s\n", vec->name,
+ printf("%s\t%s\t%s%s%s\n", vec->name,
vec->extension? vec->extension : "",
- vec->desc);
+ vec->desc,
+ version >= 3 ? "\t" : "",
+ version >= 3 ? vec->parent : "");
if (version >= 3) {
disp_v3(vec);
}